Skip to content

Conversation

@Eveeifyeve
Copy link
Member

@Eveeifyeve Eveeifyeve commented Dec 30, 2025

Redone relibc pr. A lot of issues that involved fetchFromGitLab, cargoLock defined instead we can use cargoHash(vendored), some werid changes to aliases to deprecated packages, staleness, merge conflicts and more.

Closes: #453786

Waiting on #475235 to be merged first before we rebase and merge this one.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

Eveeifyeve and others added 2 commits December 31, 2025 06:09
Co-authored-by: =?UTF-8?q?Anders=20Christiansen=20S=C3=B8rby?=
<anders@sorby.xyz>
Co-authored-by: Boosted-Bonobo <boostedbonobo1@outlook.com>
@Eveeifyeve
Copy link
Member Author

Eveeifyeve commented Jan 2, 2026

Unfortunately there is no pkgsCross for redox os. That might be something to consider after this pr for sure.

}:
rustPlatform.buildRustPackage {
pname = "relibc";
version = "0.2.5";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version = "0.2.5";
version = "0.2.5-unstable-2025-12-29";

patchPhase = ''
runHook prePatch

patchShebangs --build renamesyms.sh stripcore.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be done in postPatch instead, as setting patchPhase means the patches attribute won't be applied (although none are set here in the pcakage right now, they could be set through overrideAttrs)

runHook preInstall

mkdir -p $out
DESTDIR=$out make CC=gcc AR=ar LD=ld NM=nm install
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't these all set by the stdenv already? (except DESTDIR)

buildPhase = ''
runHook preBuild

make CC=gcc AR=ar LD=ld NM=nm CARGO_COMMON_FLAGS="" all
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question as for the install phase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants